﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections;
using V2TEK.NET.SH.Silverlight.Charts.Core.Schedule;
using V2TEK.NET.SH.Silverlight.Charts.Core;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace V2TEK.NET.SH.Silverlight.Charts
{
    /// <summary>
    /// 用于ItemsEntry的布局计算
    /// </summary>
    /// <typeparam name="T">Items的项类型，Items表示UI中显示的对象集合</typeparam>
    /// <typeparam name="R">Rows项类型，Rows是Items的父集合。由DataSource生成，如果DataSource是HierarchicalData,为递归拉平后的集合</typeparam>
    public interface IEntryLayout<T,R> : ILayout<T>, ILayoutProvider
    {
        object DataSource { get; set; }
        double RowHeight { get; set; }

        ObservableCollection<R> Rows { get; set; }

        void CreateLayout();
    }
}
